<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<load href="__PUBLIC__/css/css.css" />
<load href="__PUBLIC__/js/jquery-1.8.3.min.js" />
<load href="__PUBLIC__/js/jquery-1.10.2.min.js" />

<style>
*{ margin:0; padding:0; list-style:none;}
body{  color:#fff; text-align:left;}
h1{ text-align:center;}

.zzsc{ width:100%; height:717px; background:#fff; font-family:'微软雅黑';}
.zzsc .tab{ overflow:hidden;background: #ededed none repeat scroll 0 0;}
.zzsc .tab a{ width:203px;height:60px;display:block; float:left; text-decoration:none; color:#333;border-bottom: 1px solid #d3d3d3;border-right: 1px solid #d3d3d3; text-align:center;line-height:60px;
border-top: 1px solid #f9f9f9;background: #ededed none repeat scroll 0 0;}
.zzsc .tab a:hover{ background:#fff; text-decoration:none;}
.zzsc .tab a.on{ background:#fff; text-decoration:none;border-bottom: 1px solid #fff;}
.zzsc .content{
    height:643px;
    margin-bottom: 10px;
    margin-top: 10px;
    overflow: hidden;
    position: relative;
	overflow-y:scroll;
    width: 1020px;}
.zzsc .content ul{ position:absolute; left:0; top:0;  height:100%;}
.zzsc .content li{ width:1020px; float:left; height:100%;}
.zzsc .content li .my-tiezi{ width:1020px;}
.zzsc .content li p{ padding:10px;}
</style>
  
<title>我的个人信息</title>
</head>

<body>
<div id="wapper">
	<div class="header">
		<div class="kuang">
		<div class="pic"><a href="__URL__/touxiang" target="_blank"><img src='__PUBLIC__/uploads/{$arr.head}'></a></div>
		
		<div class="mes">
			<div class="mes-1"><h3>{$arr.username}</h3></div>
		    <div class="mes-2"><h3>个人简介:</h3><p>{$arr.intro|default="还没有添加简介(╯﹏╰)"}</p>
			<a href="__URL__/xinxi">编辑个人信息</a></div>
			<a href="{:U('Login/delsession')}"><input type="button" value="退出登录" class="bt2"></a>
			<a href="{:U('Index/index')}"><input type="button" value="论坛首页" class="bt2"></a>
		</div>
			
			
		</div>
	</div>
	
	
	<div class="admin-index">
		<div class="ad-left">
			<ul>
				<li><span>粉丝：</span><p>{$count6.count}</p></li>
				<li><span>关注：</span><p>{$count6.count1}</p></li>
				<li><span>经验：</span><p>{$arr.exper}</p></li>
				<li><span>等级：</span><p><if condition="$data['exper'] lt 500">
							<if condition="$exper lt 200">
							初级用户
							<else/>
							中级用户
							</if>
					<else/>高级用户
					</if>
               </p></li>
			
			</ul>
		</div>
		
		<div class="ad-right">
			<!-- 代码部分begin -->
<div class="zzsc">
	<div class="tab">
    	<a href="javascript:;" class="on">我的帖子</a>
        <a href="javascript:;">回复我的帖子</a>
        <a href="javascript:;" >收藏</a>
		<a href="javascript:;">回复我</a>
        <a href="javascript:;" style="border-right:0px;">好友通知</a>

       
    </div>
    <div class="content">
    	<ul>
        	<li><div class="my-tiezi">
			     <foreach name='list' item='vo'>
				 <div class="tiezi-ct">
			     	 <div class="tiezi-ct-top">
						<h3>帖子题目：</h3>
				        <p>{$vo.title}</p>
						<h3>帖子分类：</h3>
				        <p>{$vo.class}</p>
					 </div>
				  	<div class="ct-md">
					<span>内容:</span><p>{$vo.content}</p>
					</div>
					<div class="ct-bt">
					<a href="{:U('Message/remen',array('tid' => $vo['tid']))}" target="_blank"><input type="button" value="查看" class="bt"></a>
					</div>	
			   </div>
			   </foreach>
			   
				
			  </div>
			<br/><br/>
			<div align="center">
		     {$show}
			
		
	        </div>

			
			
			</li>
			
			
               <li><div class="my-tiezi">
				
			     <foreach name='list1' item='v1'>
			   
			   
			   <div class="tiezi-ct">
			     	 <div class="tiezi-ct-top">
						<h3>帖子题目：</h3>
				        <p>{$v1.title}</p>
						<h3>帖子分类：</h3>
				        <p>{$v1.class}</p>
						<h3>发布人：</h3>
				        <p>{$v1.fbr}</p>
					 </div>
				  	<div class="ct-md">
					<span>内容:</span><p>{$v1.con}</p>
					</div>
					
					
			   </div>
			   <div class="tiezi-reply">
			   		<div class="ct-md">
					<h4>{$v1.aun}</h4><span>回复我：</span>
					<p>{$v1.ac}</p>
					</div>
			   		
					<form action='{:U('Message/doLook')}' method='post'>
						<input type="hidden" name="v" value="{$v1.aid}"/>
						<input type="submit" value="朕已阅" class="bttt" name="b1" /></form>
						
					
			   </div>
			   
			    </foreach>
			   

			</div>
			    <br/><br/>
			    <div align="center">
		         {$show2}
			
		
	             </div>
			

			
			
			</li>
			
			<li><div class="my-tiezi">
		        <foreach name='c' item='vo'>
				   
				 <?php 
			         $tie=M('Tie');
		             $where['tid']=$vo;
					 $t=$tie->where($where)->find();
                     $u=M('User');
				     $where['id']=$t['uid'];
				     $us=$u->where($where)->find();
				     
				 ?> 
				<div class="tiezi-ct">
			     	 <div class="tiezi-ct-top">
						<h3>帖子题目：</h3>
				        <p>{$t.title}</p>
						<h3>帖子分类：</h3>
				        <p>{$t.class}</p>
						<h3>发布人：</h3>
				        <p>{$us.username}</p>
					 </div>
				  	<div class="ct-md">
					<span>内容:</span><p>{$t.content}</p>
					</div>
					
					<div class="ct-bt">
					<a href="{:U('Message/remen',array('tid' => $vo['tid']))}" target="_blank"><input type="button" value="查看" class="bt"></a>
					</div>
			   </div>
				</foreach>
				
			 
			
			</div>
			<br/><br/>
			<div align="center">
		     {$show1}
			
		
	        </div>

			
			
			</li>
			
			<li><div class="my-tiezi">
			     <foreach name='list2' item='v2'>
				
                 <div class="tiezi-ct">
			     	 <div class="tiezi-ct-top">
						<h3>帖子题目：</h3>
				        <p>{$v2.title}</p>
						<h3>帖子分类：</h3>
				        <p>{$v2.class}</p>
						<h3>发布人：</h3>
				        <p>{$v2.fbr}</p>
					 </div>
				  	<div class="ct-md">
					<span>内容:</span><p>{$v2.con}</p>
					</div>
					
					
			   </div>
			   <div class="tiezi-reply">
			   		<div class="ct-md">
					<h4>{$v2.aun}</h4><span>回复我：</span>
					<p>{$v2.ac}</p>
					</div>
			   		 
			   		<form action='{:U('Message/doLook')}' method='post'>
						<input type="hidden" name="v" value="{$v2.aid}"/>
						<input type="submit" value="朕已阅" class="bttt" name="b2" /></form>
					
						
					
			   </div>
			    </foreach>
			   

			 </div>
			    <br/><br/>
			    <div align="center">
		         {$show3}
			
		
	             </div>
			

			
			
			</li>
			
			<li><div class="my-tiezi">
			     <foreach name='data' item='list'>
				 <?php
				    $user=M('User');
                    $where['id']=$list['fid'];
		            $arr=$user->where($where)->find();
				 ?>
				 <div class="tiezi-ct">
			     	 <div class="tiezi-ct-top">
						<h3>好友验证</h3>
					 </div>
				  	<div class="ct-md">
					<p>{$arr.username}添加你为好友</p>
					</div>
					<div class="ct-bt">
	       	            <a href="{:U('Message/doSavemsg')}?id={$list.id}" class="bt">同意</a>
					    <a href="{:U('Message/doSavemsg1')}?id={$list.id}" class="bt">拒绝</a>
					</div>	
			   </div>
			   </foreach>
			   
				
			  </div>
			
			
			</li>
			
			
          
        </ul>
    </div>
</div>


<script>
$(function(){
	$('.zzsc .content ul').width(1020*$('.zzsc .content li').length+'px');
	$(".zzsc .tab a").mouseover(function(){
		$(this).addClass('on').siblings().removeClass('on');
		var index = $(this).index();
		number = index;
		var distance = -1020*index;
		$('.zzsc .content ul').stop().animate({
			left:distance
		});
	});
	
	
	

});
</script>
<!-- 代码部分end -->
			
	
	
		</div>
</div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
</div>


</body>
</html>
